﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace Ex7SchoolRestService
{
    public class SchoolRestService : ISchoolRestService
    {

        public Student[] GetAllStdeunts()
        {
            RestServiceSchoolDBEntities context = new RestServiceSchoolDBEntities();
            using (context)
            {
                var result = context.Students.ToArray();
                return result;
            }
        }
    }
}
